package com.stu.pojo;

import java.util.Date;
import java.util.List;

//订单
public class Order {
	private int id;
	private int user_id;
	private String number;
	//一对一查询用户信息
	private User user;
	//一对多，对应多个订单详情
	private List<Product> productList;
	
	
	public List<Product> getProductList() {
		return productList;
	}
	public void setProductList(List<Product> productList) {
		this.productList = productList;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	
	@Override
	public String toString() {
		return "Order [id=" + id + ", user_id=" + user_id + ", number=" + number  + ", user=" + user + ", productList=" + productList + "]";
	}
	
	
	
}
